package com.lxr.postdata.activity;

import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.ImageView;

import com.lxr.postdata.R;
import com.lxr.postdata.common.WriteHandlingWebViewClient;

public class InternetActivity extends AppCompatActivity {
    private WebView webView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_internet);

        webView = findViewById(R.id.web_view);
        WebSettings settings = webView.getSettings();
        settings.setJavaScriptEnabled(true);
        webView.setWebViewClient(new WriteHandlingWebViewClient(webView) {});
        WebView.setWebContentsDebuggingEnabled(true);
        webView.loadUrl("https://moon.ahighapi.com/");

    }
}
